export function autodivheight(){ //函数：获取尺寸
    var searchHeight = $("#searchColums").height();
    var toolbarHeight = $("#toolbar").height();
    var pageDivHeight = $("#pageDiv").height();
    // //获取浏览器窗口高度
    var winHeight=0;
    if (window.innerHeight)
        winHeight = window.innerHeight;
    else if ((document.body) && (document.body.clientHeight))
        winHeight = document.body.clientHeight;
    //DIV高度为浏览器窗口的高度
    $("#datagrid").height(winHeight-searchHeight-toolbarHeight-pageDivHeight-40);

}

export function getToken(){
    return "x-access-token";
}
